Skip to content
Repos

WO_DevPlaceIOS

Swift 1.2 KB42 lines Opens in site

Directory Raw Download

import Foundation
import DevPlaceSwiftSDK

extension NotificationSettings {
    static var mock: Self {
        .init(
            user: .mock,
            groupingEnabled: true,
            throttlingEnabled: true,
            telegramPaired: false,
            preferences: [
                .init(
                    key: "comment",
                    label: "Comments",
                    description: "Someone comments on your post",
                    inApp: true,
                    push: true,
                    telegram: false,
                    customized: false,
                ),
                .init(
                    key: "vote",
                    label: "Upvotes",
                    description: "Someone ++'d your content",
                    inApp: true,
                    push: false,
                    telegram: false,
                    customized: true,
                ),
                .init(
                    key: "message",
                    label: "Direct messages",
                    description: "Someone sends you a message",
                    inApp: true,
                    push: true,
                    telegram: false,
                    customized: false,
                ),
            ],
        )
    }
}
33.4ms